package org.osiris.client.services;

import com.google.gwt.user.client.rpc.impl.RemoteServiceProxy;
import com.google.gwt.user.client.rpc.SerializationException;
import com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.ResponseReader;
import com.google.gwt.core.client.impl.Impl;
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter;

public class SolicitudService_Proxy extends RemoteServiceProxy implements org.osiris.client.services.SolicitudServiceAsync {
  private static final String REMOTE_SERVICE_INTERFACE_NAME = "org.osiris.client.services.SolicitudService";
  private static final String SERIALIZATION_POLICY ="EB7BCF7378CCE8F1C1917404D664EAB1";
  private static final org.osiris.client.services.SolicitudService_TypeSerializer SERIALIZER = new org.osiris.client.services.SolicitudService_TypeSerializer();
  
  public SolicitudService_Proxy() {
    super(GWT.getModuleBaseURL(),
      "solicitud", 
      SERIALIZATION_POLICY, 
      SERIALIZER);
  }
  
  public void altaSolicitudAfililiacion(org.osiris.client.model.SolicitudPojo pojo, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.altaSolicitudAfililiacion", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("altaSolicitudAfililiacion");
      streamWriter.writeInt(1);
      streamWriter.writeString("org.osiris.client.model.SolicitudPojo/203960615");
      streamWriter.writeObject(pojo);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.altaSolicitudAfililiacion", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.altaSolicitudAfililiacion", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void altaSolicitudModificacion(org.osiris.client.model.SolicitudPojo pojo, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.altaSolicitudModificacion", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("altaSolicitudModificacion");
      streamWriter.writeInt(1);
      streamWriter.writeString("org.osiris.client.model.SolicitudPojo/203960615");
      streamWriter.writeObject(pojo);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.altaSolicitudModificacion", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.altaSolicitudModificacion", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getContactosSolicitud(java.lang.String id_sol, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getContactosSolicitud", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getContactosSolicitud");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(id_sol);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getContactosSolicitud", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getContactosSolicitud", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getContactosSolicitudOriginales(java.lang.String id_sol_cred, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getContactosSolicitudOriginales", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getContactosSolicitudOriginales");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(id_sol_cred);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getContactosSolicitudOriginales", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getContactosSolicitudOriginales", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getDireccionesSolicitud(java.lang.String id_sol, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getDireccionesSolicitud", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getDireccionesSolicitud");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(id_sol);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getDireccionesSolicitud", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getDireccionesSolicitud", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getDireccionesSolicitudOriginales(java.lang.String id_sol_cred, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getDireccionesSolicitudOriginales", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getDireccionesSolicitudOriginales");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(id_sol_cred);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getDireccionesSolicitudOriginales", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getDireccionesSolicitudOriginales", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getMunicipios(java.lang.String ID, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getMunicipios", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getMunicipios");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(ID);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getMunicipios", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getMunicipios", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getPaises(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getPaises", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getPaises");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getPaises", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getPaises", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getPostal(java.lang.String ID, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getPostal", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getPostal");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(ID);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getPostal", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getPostal", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getProvincias(java.lang.String ID, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getProvincias", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getProvincias");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(ID);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getProvincias", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getProvincias", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getSolicitudModificacion(java.lang.String id_sol, com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getSolicitudModificacion", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getSolicitudModificacion");
      streamWriter.writeInt(1);
      streamWriter.writeString("java.lang.String/2004016611");
      streamWriter.writeString(id_sol);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getSolicitudModificacion", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getSolicitudModificacion", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getTiposContactos(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposContactos", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getTiposContactos");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposContactos", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getTiposContactos", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getTiposId(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposId", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getTiposId");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposId", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getTiposId", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getTiposSexo(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposSexo", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getTiposSexo");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposSexo", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getTiposSexo", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getTiposStatus(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposStatus", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getTiposStatus");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTiposStatus", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getTiposStatus", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getTivoDir(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTivoDir", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getTivoDir");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTivoDir", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getTivoDir", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
  
  public void getTivoVia(com.google.gwt.user.client.rpc.AsyncCallback callback) {
    int requestId = getNextRequestId();
    boolean toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTivoVia", requestId, "begin"));
    SerializationStreamWriter streamWriter = createStreamWriter();
    // createStreamWriter() prepared the stream
    try {
      streamWriter.writeString(REMOTE_SERVICE_INTERFACE_NAME);
      streamWriter.writeString("getTivoVia");
      streamWriter.writeInt(0);
      String payload = streamWriter.toString();
      toss = isStatsAvailable() && stats(timeStat("SolicitudService_Proxy.getTivoVia", requestId, "requestSerialized"));
      doInvoke(ResponseReader.OBJECT, "SolicitudService_Proxy.getTivoVia", requestId, payload, callback);
    } catch (SerializationException ex) {
      callback.onFailure(ex);
    }
  }
}
